<template>
	<view>
		<view>
			<text>详情页</text>
		</view>
		<view>
			<text selectable="true">chang liu</text>
		</view>
		<view>
			<text selectable="true" space="emsp">测试 测试</text>
		</view>
		<view class="iconfont icon-index-fill"></view>
		<view>{{msg}}</view>
		<view>{{'你好'+'世界'}}</view>
		<view>{{1+1}}</view>
		<view>{{flag?'反话，我是假的':'反话，我是真的'}}</view>
		<view>
			<image v-bind:src="imgUrl"></image>
		</view>
		<view v-for="(item,index) in arr" :key="item.id">
			序号：{{index}},名字：{{item.name}},年龄：{{item.age}}
		</view>
		<button type="primary" v-on:click="clickHandle(20,$event)">按钮</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				msg: 'hello',
				flag: true,
				imgUrl: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2Fc0%2F8e%2F28%2Fc08e28eb52da5a2b5b451ad6272a8197.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1654669222&t=2e65d3a1763400923f26be6d4d8573b9',
				arr: [{
					name: '张三',
					age: 18,
					id: 1,
				}, {
					name: '李四',
					age: 19,
					id: 2,
				}]
			}
		},
		methods: {
			clickHandle(num,e){
				console.log('点击我了',num,e)
			}

		},
		onLoad(options) {
			console.log(options)
		}
	}
</script>

<style>

</style>
